apk: Fix host compilation with C89
authorHauke Mehrtens <[email protected]>
Tue, 9 Dec 2025 01:06:26 +0000 (02:06 +0100)
committerHauke Mehrtens <[email protected]>
Tue, 9 Dec 2025 01:06:26 +0000 (02:06 +0100)
commitd11b77db5eca3e20c5c238c55d80059229a188b3
tree9ed7609ecf17e963e16c3eea5993f7c4fc9b153a
parent344bb7f9162b76a864cec1ebd069651a9c2483cf
apk: Fix host compilation with C89

This fixes the following build error:
```
../src/apk.c: In function 'parse_options':
../src/apk.c:584:4: error: a label can only be part of a statement and a declaration is not a statement
  584 |    char *arg = opt_parse_arg(&st);
      |    ^~~~
```

Upstream MR: https://gitlab.alpinelinux.org/alpine/apk-tools/-/merge_requests/376

Fixes: b91ebdabbb09 ("apk: bump to 3.0.1")
Signed-off-by: Hauke Mehrtens <[email protected]>
package/system/apk/patches/0020-apk-fix-compile-when-using-C89.patch [new file with mode: 0644]